home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 5
/
Amiga Tools 5.iso
/
tools
/
developer-tools
/
guis
/
gadutil
/
docs
/
autodocs
/
06.gu_countnodes
< prev
next >
Wrap
Text File
|
1996-07-16
|
939b
|
31 lines
gadutil.library/GU_CountNodes gadutil.library/GU_CountNodes
NAME
GU_CountNodes -- Count number of nodes in a list.
SYNOPSIS
numnodes = GU_CountNodes(list)
D0 A0
ULONG GU_CountNodes(struct List *);
FUNCTION
This function will count the number of nodes attached to a list.
INPUTS
list - a pointer to the list to get the number of nodes in
RESULT
numnodes - Number of nodes that was in the list for the moment.
Note that count starts from one and not from zero!
NOTES
Use Forbid() and Permit() around a call to this function if you
are using it on a list that can change at any time (e.g. a list
that wasn't created by yourself). This function may not be accurate
when you are using it on a system list.
SEE ALSO
GU_AddTail(), GU_ClearList(), GU_DetachList(), GU_AttachList()
GU_FindNode(), GU_NodeUp(), GU_NodeDown(), GU_NewList(), GU_SortList()